<template>
  <div>新增医生信息

      <el-form :model="add" title="添加医生"> <br/>
                <el-form-item label="">文章标题：
                    <el-input v-model="add.htitle" placeholder="请输入内容" style="width: 500px"></el-input>
                </el-form-item>
                 <el-form-item label="">上传缩略图：
                    <el-input v-model="add.himage" placeholder="请输入内容" style="width: 500px"></el-input>
                </el-form-item>
                 <el-form-item label="">作者：
                    <el-input v-model="add.hauthor" placeholder="请输入内容" style="width: 500px"></el-input>
                </el-form-item>
                 <el-form-item label="">文章内容：
                    <el-input v-model="add.hcontent" placeholder="请输入内容" style="width: 500px"></el-input>
                </el-form-item>
                <el-button @click="addHealth()" type="primary">确定</el-button>
                <el-button @click="quxaio()" type="primary">取消</el-button>
              </el-form>
  </div>
</template>

<script>
export default {
    data(){
        return{
            add:{},
        }
    },
    methods:{
        addHealth(){
            this.$axios.post("/user/user/doctor/ren/addHealth",this.add).then(res=>{
                this.add={};
                this.$router.push({path:'/Healthy' })
            })
        },
        quxaio(){
            this.$router.push({path:'/Healthy' })
        }
    }
}
</script>

<style>

</style>